projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9a589c
)
text: Remove useless gtk_widget_get_allocation call
author
Timm Bäder
<mail@baedert.org>
Sat, 13 Apr 2019 04:26:27 +0000
(06:26 +0200)
committer
Timm Bäder
<mail@baedert.org>
Sat, 13 Apr 2019 04:26:27 +0000
(06:26 +0200)
gtk/gtktext.c
patch
|
blob
|
history
diff --git
a/gtk/gtktext.c
b/gtk/gtktext.c
index be87cb1fbe34eed1606a674c6b63cb0e93816019..60aa6e7c55e7a5b33fd98fd59e3a1beefc5cad57 100644
(file)
--- a/
gtk/gtktext.c
+++ b/
gtk/gtktext.c
@@
-2646,7
+2646,6
@@
gtk_text_show_magnifier (GtkText *self,
int y)
{
GtkTextPrivate *priv = gtk_text_get_instance_private (self);
- GtkAllocation allocation;
cairo_rectangle_int_t rect;
GtkAllocation text_allocation;
@@
-2654,8
+2653,6
@@
gtk_text_show_magnifier (GtkText *self,
gtk_text_ensure_magnifier (self);
- gtk_widget_get_allocation (GTK_WIDGET (self), &allocation);
-
rect.x = x + text_allocation.x;
rect.width = 1;
rect.y = text_allocation.y;